<?php
	if (isset($_POST['id'])) {
		include '../inc/db.php';
		$cn = new db_mysqli();
		echo $cn->OutputJSON('select * from spaces where buildingid='.$_POST['id']);
	}
?>